<!DOCTYPE html>
<html>

<head lang="zh-cn">
	<meta charset="UTF-8">
	<title>首页</title>
	<!-- <link rel="stylesheet" href="css/regist.css"/> -->
	<link href="/static/css/main.css" rel="stylesheet" >
	<link href="/static/css/bootstrap.min.css" rel="stylesheet">
	<link href="/static/css/animate.min.css" rel="stylesheet">
	<link href="/static/css/main.css" rel="stylesheet">
	<link href="/static/css/page.css" rel="stylesheet">
	<link href="/static/css/responsive.css" rel="stylesheet">
	<link href="/static/css/iconfont.css" rel="stylesheet" />

	<script src="/static/js/jquery.js"></script>
	<script src="/static/js/bootstrap.min.js"></script>
	<script src="/static/js/jquery.SuperSlide.js" type="text/javascript"></script>
	<script src="/static/js/NSW_Index.js"></script>
</head>

<body>
	<header id="header">
		<nav class="navbar navbar-inverse" role="banner">
			<div class="container">
				<div class="row">
					<div class="col-md-3 navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="http://127.0.0.1:8000/user/login_view/"><img src="/static/images/logo.png" alt="logo"
								class="img-responsive"></a>
					</div>
					<div class="col-md-9">
						<div class="tel">24小时服务热线：<span>0755-29961998</span></div>
						<div class="collapse navbar-collapse navbar-right">
							<ul class="nav navbar-nav">
								<li id="top_home" class="active">
									<a href="http://127.0.0.1:8000/user/login_view/">首页</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/publish/model_view/">订单创建</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/order/order_list_view/">我的订单</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/evaluation/list_view/">我的评价</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/user/user_view/">我的信息</a>
								</li>
								<script>
									var moh_user = window.localStorage.getItem('moh_user');
									console.log = moh_user
									if (moh_user){
										$("#top_home").hide()
									}else{
										$("#top_home").show()
									}
								</script>

							</ul>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
			</div>
		</nav>
	</header>


	<!--banner-->
	<section id="main-slider" class="no-margin">
		<!-- banner轮播 -->
		<div class="fullSlide">
			<div class="bd">
				<ul>
					<li style=" background:url(/static/images/banner.jpg) top center no-repeat;  background-size:cover;"></li>
					<li style=" background:url(/static/images/anquan_bj.jpg) top center no-repeat;  background-size:cover;"></li>
					<li style=" background:url(/static/images/banner.jpg) top center no-repeat;  background-size:cover;"></li>
				</ul>
			</div>
			<div class="hd">
				<ul class="container">
					<li class="">1</li>
					<li class="on">2</li>
					<li class="">3</li>
				</ul>
			</div>
			<span class="prev" style="opacity: 0.5; display: inline;"></span>
			<span class="next" style="opacity: 0.5; display: inline;"></span>
			<div class="container Online_wp">
				<div class="row">
					<div class="Online">
						<h3>注册 <a class="c" href="http://127.0.0.1:8000/user/login_view/">立即登录</a></h3>
						<ul>
							<li>
								<input class="m-btn" type="text" id="username" placeholder="用户">
							</li>
							<li>
								<input class="m-btn" type="text" id="phone" placeholder="手机号">
							</li>
							<li>
								<input id="password1" class="m-btn" type="password" placeholder="密码">
							</li>
							<li>
								<input id="password2" class="m-btn" type="password" placeholder="确定密码">
							</li>
							<div class="form-group">
								<input type="checkbox" value="checkbox" class="autologin" id="deal" checked="checked">
								我已阅读并接受<a href="#" class="green" title="《莫慌家政用户协议》" target="_blank">《莫慌家政用户协议》</a>
							</div>
							<li>
								<input id="regist" class="m-submit" type="submit" value="同意协议并注册">
							</li>
						</ul>
					</div>
				</div>
			</div>
			<script>
				$("#regist").on("click", function () {
					var username = $("#username").val()
					var phone = $("#phone").val()
					var password1 = $("#password1").val()
					var password2 = $("#password2").val()
					$.ajax({
						type: "post",
						url: "http://127.0.0.1:8000/user/regist",
						data: JSON.stringify({ "username": username, "phone": phone, "password1": password1, "password2": password2 }),
						headers: { 'Content-Type': "application/json" },
						success: function (data) {
							if (data.code == 200) {
								// window.localStorage.setItem('moh_token', data.token);
								// window.localStorage.setItem('moh_user', data.username);
								alert('注册成功！');
								window.location.href = 'http://127.0.0.1:8000/user/login_view/';
							} else {
								alert(data.error);
							}
						},
						error: function (e) {
							alert(data);
						}
					})
				})
			</script>
		</div>
		<div class="clearfix"></div>
	</section>
	<!--/#main-slider-->




	<!-- 安全 Start -->
	<section class="service-v1">
		<div class="container">
			<div class="row">
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe620;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>正规公司，值得信赖</h3>
								<p>工商注册备案，安全可靠！</p>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe633;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>安全保障，持证上岗</h3>
								<p>三证齐全（身份证，健康证，育婴师证）疾病排查，身份联网确认</p>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe614;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>异地服务，更贴心</h3>
								<p>专注母婴护理，你在哪，我们的服务就在哪里</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<section id="partner">
		<div class="partners">
			<div class="parBd">
				<div class="container">
					<div class="par_t">合<br>作<br>伙<br>伴</div>
					<div class="slideBox">
						<!--<a class="sPrev" href="javascript:void(0)"></a>-->
						<ul>
							<li><i><img class="img-responsive wow fadeInDown" src="/static/images/dx.jpg"></i></li>
							<li><i><img class="img-responsive wow fadeInDown" src="/static/images/bd.jpg"></i></li>
							<li><i><img class="img-responsive wow fadeInDown" src="/static/images/58.jpg"></i></li>
							<li><i><img class="img-responsive wow fadeInDown" src="/static/images/yk.jpg"></i></li>
							<li><i><img class="img-responsive wow fadeInDown" src="/static/images/zs.jpg"></i></li>
						</ul>
						<!--<a class="sNext" href="javascript:void(0)"></a>-->
					</div><!-- slideBox End -->
				</div>
			</div><!-- parBd End -->

		</div>
	</section>
	<!--/#partner-->

	<!--footer-->
	<footer id="footer">
		<div class="container">
			<span>
				<a id = "bottom_home" href="http://127.0.0.1:8000/user/login_view/">首页</a>
				<a href="http://127.0.0.1:8000/publish/model_view/">订单创建</a>
				<a href="http://127.0.0.1:8000/order/order_list_view/">我的订单</a>
				<a href="http://127.0.0.1:8000/evaluation/list_view/">我的评价</a>
				<a href="http://127.0.0.1:8000/user/user_view/">我的信息</a>
				<script>
					var moh_user = window.localStorage.getItem('moh_user');
					console.log = moh_user
					if (moh_user){
						$("#bottom_home").hide()
					}else{
						$("#bottom_home").show()
					}
				</script>
			</span>
			<span>联系地址：深圳宝安西乡街道兴业路西南侧碧海富通城1栋110 &nbsp;&nbsp; 联系方式：0755-29961998<br>
				Copyright © 2005-2023 All rights reserved. 京ICP备10012705号-8 </span>
		</div>
	</footer>

	<script type="text/javascript">
		/*
		SuperSlide组合注意：
		1、内外层mainCell、targetCell、prevCell、nextCell等对象不能相同，除非特殊应用；
		2、注意书写顺序，通常先写内层js调用，再写外层js调用
		*/

		/* 内层图片滚动切换 */
		jQuery(".partners .slideBox").slide({
			mainCell: "ul",
			vis: 5,
			prevCell: ".sPrev",
			nextCell: ".sNext",
			effect: "leftLoop"
		});

		/* 内层图片滚动切换 */
		jQuery(".slideGroup .slideBox").slide({
			mainCell: "ul",
			vis: 5,
			prevCell: ".sPrev",
			nextCell: ".sNext",
			effect: "leftLoop"
		});
		/* 外层tab切换 */
		jQuery(".news").slide({
			titCell: ".parHd li",
			mainCell: ".parBd"
		});
	</script>



</body>

</html>